package com.rem.designPattern.visitor访问者;

/**
 * @author Rem
 * @date 2022-11-22
 */
public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        home.add(new Dog());
        home.add(new Cat());

        Owner owner = new Owner();
        home.action(owner);

        Friend friend = new Friend();
        home.action(friend);
    }
}
